import { Suspense } from "react";
import { Provider } from "react-redux";
import { BrowserRouter } from "react-router-dom";
import Routes from "./common/routes";
import store from "./models";

function App() {
  return (
    <Provider store={store}>
      <Suspense fallback={() => console.log("loading")}>
        <BrowserRouter>
          <Routes />
        </BrowserRouter>
      </Suspense>
    </Provider>
  );
}

export default App;
